home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / fbimon.zip / EmxRexx / FBiMonApi.h < prev    next >
C/C++ Source or Header  |  1997-05-21  |  1KB  |  71 lines

  1. /* FBiMonApi.h */
  2. #ifndef FBIMONAPIH
  3. #define FBIMONAPIH
  4.  
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. #include <string.h>
  8. #define INCL_BASE
  9. #define INCL_DOSDEVIOCTL
  10. #define INCL_REXXSAA
  11. #include <os2.h>
  12.  
  13. /* Text Attributes constants */
  14. #define Att_Nothing         0x00
  15. #define Att_Underline       0x01
  16. #define Att_Normal          0x07
  17. #define Att_Inversed        0x70
  18. #define Att_HighIntensity   0x08
  19. #define Att_Blink           0x80
  20.  
  21. #define SetPixelCmd         0x0A
  22. #define HoriLineCmd         0x0C
  23. #define VertLineCmd         0x0D
  24. #define ScreenModeCmd       0x01
  25. #define ScreenAttributeCmd  0x02
  26. #define SetCursorAspectCmd  0x04
  27. #define ScreenPositionCmd   0x09
  28. #define PrintCmd            0x07
  29.  
  30.  
  31. typedef struct {
  32.    USHORT Command;
  33.    char Md;
  34. } ScreenMode;
  35.  
  36. typedef struct {
  37.    USHORT Command;
  38.    char Att;
  39. } ScreenAttribute;
  40.  
  41. typedef struct {
  42.    USHORT Command;
  43.    USHORT spx,spy;
  44. } ScreenPosition;
  45.  
  46. typedef struct {
  47.    USHORT Command;
  48.    USHORT Length;
  49.    char Msg[512];
  50. } ScreenPrintIn;
  51.  
  52. typedef struct {
  53.    USHORT Command;
  54.    char first;
  55.    char second;
  56.    char options;
  57. } SetCursorAspect;
  58.  
  59.  
  60. int  FBiMonInit();
  61. void FBiMonClose();
  62.  
  63. void FBiMonSetMode(int mode);
  64. void FBiMonSetPos(int x,int y);
  65. void FBiMonWriteString(char *buffer,int x,int y);
  66. void FBiMonWriteTTY(char *buffer);
  67. void FBiMonAttribute(char att);
  68. void FBiMonSetCursorAspect(char first,char second,char options);
  69.  
  70. #endif
  71.